import Vue from 'vue'
import Router from 'vue-router'
import login from '@/pages/user/login'
import register from '@/pages/user/register'
import index from '@/pages/index/index'
import user from '@/pages/user/user'
import info from '@/pages/product/info'

Vue.use(Router)

export default new Router({
  routes: [{
      path: '/user/login',
      name: 'login',
      meta: {
        title: '贷款王',
      },
      component: login
    }, {
      path: '/index',
      name: 'index',
      meta: {
        title: '贷款王',
      },
      component: index
    },
    {
      path: '/user',
      name: 'user',
      meta: {
        title: '贷款王',
      },
      component: user
    },
    {
      path: '/info',
      name: 'info',
      meta: {
        title: '贷款王',
      },
      component: info
    },
    {
      path: '/',
      name: 'register',
      meta: {
        title: '小木借呗',
      },
      component: register
    }
  ]
})
